package com.bookstore.utils;

public class EmailCodeUtils {

	public static String getUid(String string) {
		if (string == null || string == "") {
			return null;
		}
		int index = string.lastIndexOf("-");
		if (index != -1) {
			return string.substring(index + 1);
		}
		return null;
	}

	public static String getUUID(String string) {
		if (string == null || string == "") {
			return null;
		}
		int index = string.lastIndexOf("-");
		if (index != -1) {
			return string.substring(0, index);
		}
		return null;
	}
}
